<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>网络笔记后台管理</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/css/common.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/css/blogadd.css">
    <style type="text/css" rel="stylesheet">
        form {
            margin: 0;
        }
        .editor {
            margin-top: 5px;
            margin-bottom: 5px;
        }
    </style>
</head>
<body>

<div class="layui-row layui-col-space20">
    <div class="layui-col-md12">
        <p>
            <span class="layui-breadcrumb" style="visibility: visible;">
                <a><cite>笔记修改</cite></a>
            </span>
        </p>
    </div>
    <div class="layui-col-md12">
        <div class="layui-form layui-form-pane">
            <form action="${pageContext.request.contextPath}/note/alternote1?id=${note.id}" method="post">
                <div class="layui-form-item">
                    <label for="L_title" class="layui-form-label">标题</label>
                    <div class="layui-input-block">
                        <input type="text" id="L_title" name="title" value="${note.title}" required lay-verify="required" autocomplete="off" class="layui-input" width="50">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">类型：</label>
                    <c:if test="${note.type==0}">个人</c:if>
                    <c:if test="${note.type==1}">分享</c:if>
                    <c:if test="${note.type==2}">其他</c:if>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="line-height:30px;">上次修改时间：</label>
                    <span style="line-height:30px;"><fmt:formatDate value="${note.getCreatetime()}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
                </div>
                <div class="layui-form-item layui-form-text">
                    <div class="layui-input-block">
                        <label class="layui-form-label">编辑内容</label>
                        <div class="layui-text">
                            <textarea id="demo" name="content">${note.content}</textarea>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <button class="layui-btn" lay-filter="*" lay-submit>修改</button>
                </div>
            </form>
        </div>
    </div>
</div>
<%--	</div>--%>
</body>
<script src="${pageContext.request.contextPath}/static/js/jquery-3.2.1.js"></script>
<script src="${pageContext.request.contextPath}/layui/layui.all.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/javascript/blogadd.js"></script>
<script type="text/javascript">
    layui.use('layedit', function(){
        var layedit = layui.layedit;
        layedit.build('demo'); //建立编辑器
    });
</script>
</html>